package com.dream.myqiyi.dao;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "Note")
public class NoteModel {
	//public Note evenNote;
	
	@DatabaseField(id = true)
	public String guid;
	@DatabaseField
	public int updateSequenceNumber;
	@DatabaseField
	public String title;
	@DatabaseField(dataType = DataType.LONG_STRING)
	public String content;
	@DatabaseField
	public String contentHash;
	@DatabaseField
	public int contentLength;
	@DatabaseField
	public long created;
	@DatabaseField
	public long updated;
	@DatabaseField
	public long deleted;
	@DatabaseField
	public boolean active;
	@DatabaseField
	public String notebookGuid;
	@DatabaseField
	public long attributeSubjectDate;
	@DatabaseField
	public double attributeLatitude;
	@DatabaseField
	public double attributeLongitude;
	@DatabaseField
	public double attributeAltitude;
	@DatabaseField
	public String attributeAuthor;
	@DatabaseField
	public String attributeSourceUrl;
	@DatabaseField
	public boolean isExpunged;
	@DatabaseField
	public boolean isDirty;

	public NoteModel() {
		guid = "";
		updateSequenceNumber = 0;
		title = "";
		content = "";
		contentHash = "";
		contentLength = 0;
		created = 0;
		updated = 0;
		deleted = 0;
		active = true;
		notebookGuid = "";
		attributeSubjectDate = 0;
		attributeLatitude = 0.0;
		attributeLongitude = 0.0;
		attributeAltitude = 0.0;
		attributeAuthor = "";
		attributeSourceUrl = "";
		isExpunged = false;
		isDirty = true;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("guid=").append(guid);
		//sb.append(", ").append("type=").append(type);
		return sb.toString();
	}

	// Getters and Setters
	public String getGuid() {
		return guid;
	}
	public void setGuid(String guid) {
		this.guid = guid;
	}
	public int getUpdateSequenceNumber() {
		return updateSequenceNumber;
	}
	public void setUpdateSequenceNumber(int updateSequenceNumber) {
		this.updateSequenceNumber = updateSequenceNumber;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContentHash() {
		return contentHash;
	}
	public void setContentHash(String contentHash) {
		this.contentHash = contentHash;
	}
	public int getContentLength() {
		return contentLength;
	}
	public void setContentLength(int contentLength) {
		this.contentLength = contentLength;
	}
	public long getCreated() {
		return created;
	}
	public void setCreated(long created) {
		this.created = created;
	}
	public long getUpdated() {
		return updated;
	}
	public void setUpdated(long updated) {
		this.updated = updated;
	}
	public long getDeleted() {
		return deleted;
	}
	public void setDeleted(long deleted) {
		this.deleted = deleted;
		//this.evenNote.setDeleted(deleted.getTime());
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
		//this.evenNote.setActive(active);
	}
	public String getNotebookGuid() {
		return notebookGuid;
	}
	public void setNotebookGuid(String notebookGuid) {
		this.notebookGuid = notebookGuid;
	}
	public long getAttributeSubjectDate() {
		return attributeSubjectDate;
	}
	public void setAttributeSubjectDate(long attributeSubjectDate) {
		this.attributeSubjectDate = attributeSubjectDate;
	}
	public double getAttributeLatitude() {
		return attributeLatitude;
	}
	public void setAttributeLatitude(double attributeLatitude) {
		this.attributeLatitude = attributeLatitude;
	}
	public double getAttributeLongitude() {
		return attributeLongitude;
	}
	public void setAttributeLongitude(double attributeLongitude) {
		this.attributeLongitude = attributeLongitude;
	}
	public double getAttributeAltitude() {
		return attributeAltitude;
	}
	public void setAttributeAltitude(double attributeAltitude) {
		this.attributeAltitude = attributeAltitude;
	}
	public String getAttributeAuthor() {
		return attributeAuthor;
	}
	public void setAttributeAuthor(String attributeAuthor) {
		this.attributeAuthor = attributeAuthor;
	}
	public String getAttributeSourceUrl() {
		return attributeSourceUrl;
	}
	public void setAttributeSourceUrl(String attributeSourceUrl) {
		this.attributeSourceUrl = attributeSourceUrl;
	}
	public boolean isExpunged() {
		return isExpunged;
	}
	public void setExpunged(boolean isExpunged) {
		this.isExpunged = isExpunged;
	}
	public boolean isDirty() {
		return isDirty;
	}
	public void setDirty(boolean isDirty) {
		this.isDirty = isDirty;
	}
	
//	public Note getEvenNote() {
//		return evenNote;
//	}
//	public void setEvenNote(Note evenNote) {
//		this.evenNote = evenNote;
//	}
	
}
